﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Threading;

namespace LogFileMonitor
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            bool create;
            using (Mutex mu = new Mutex(true, "LogFileMonitor", out create))  //Application.ProductName
            {
                if (create)
                {
                    Application.EnableVisualStyles();
                    Application.SetCompatibleTextRenderingDefault(false);
                    Application.Run(new Main());
                }
                else
                    MessageBox.Show("程序已经运行。");
            }

        }
    }
}
